<include file="Public:head"/>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>金额流水记录</h5>
                    <div class="ibox-tools" style="margin-top: -9px;">
                        <a href="javascript:location.reload();" class="btn btn-primary"><i class="fa fa-refresh"></i> 刷新</a>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-3">

                        </div>

                    </div>

                    <br />

                    <div class="table-responsive">
                        <form action="__URL__/operate" method="post" id="operate_form">
                            <table class="table table-bordered table-hover"
                                   id="categoryTable">
                                <thead>
                                <tr class="active">
                                    <th height="40">编号</th>
                                    <th>金额</th>
                                    <th>增减</th>
                                    <th>来源</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <volist name="list" id="vo">
                                    <tr>
                                        <td>{$vo.id}</td>
                                        <td>{$vo.price}</td>
                                        <td>
                                            <switch name="$vo.type">
                                                <case value="1">资金增加</case>
                                                <case value="-1">资金减少</case>
                                            </switch>
                                        </td>
                                        <td>
                                            <switch name="$vo.type_name">
                                                <case value="1">订单收入</case>
                                                <case value="2">提现减少</case>
                                                <case value="3">退货减少</case>
                                            </switch>
                                        </td>
                                        <td>
                                            <a href="{:url('Platform/detail',array('id'=>$vo.id))}" class="btn btn-primary">查看</a>
                                        </td>
                                    </tr>
                                </volist>

                                </tbody>
                            </table>
                        </form>
                        <div class="col-sm-12" style="padding:0px;">
                            <ul class="pagination  pull-right">
                                {$page}
                            </ul>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="__STATIC__/laydate/laydate.js"></script>
<script>
    //日期范围
    laydate.render({
        elem: '#time'
        ,range: true
    });
</script>

</body>

</html>